<?php
/**
 * CarDetailtb
 *  
 * @author Administrator
 * @version 
 */

class Model_CarDetailtb extends Zend_Db_Table_Abstract
{
    /**
     * The default table name
     */
    protected $_name = 'tcl_car_detailtb';
    
    
    //获取详细配置ARRAY
    public function getAlldetail($id) {
    	
        
        $db = $this->getAdapter();
        $select = $db->select();
        
        $select->from($this->_name, array('detail_id', 'deploy', 'deploy_value'))
        		->where("detail_id = ?", $id);
        
        try {
        	$row = $db->fetchAll($select);
        } catch (Exception $e) {
        	echo $e;
        	exit();
        }
        
        
        return $row;
    }
    

}
